package com.shuhua.taskServer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuhua.pojo.entity.TaskComment;
import com.shuhua.taskServer.mapper.TaskCommentMapper;
import com.shuhua.taskServer.service.TaskCommentService;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;

@Service
public class TaskCommentServiceImpl extends ServiceImpl<TaskCommentMapper, TaskComment> implements TaskCommentService {
    @Override
    public Map<String, Object> getTaskCommentWithCraftsmanById(Long id) {
        return this.baseMapper.selectTaskCommentWithCraftsmanById(id);
    }
    @Override
    public List<Map<String, Object>> getAllTaskCommentWithCraftsman() {
        return this.baseMapper.selectAllTaskCommentWithCraftsman();
    }
    @Override
    public List<Map<String, Object>> getTaskCommentWithCraftsmanByTaskId(Long taskId) {
        return this.baseMapper.selectTaskCommentWithCraftsmanByTaskId(taskId);
    }
} 